Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 314 Bytes

12.1 - 方法列表.md

File metadata and controls

13 lines (9 loc) · 314 Bytes

方法列表

SSL/TLS

  • 依赖openssl库,需要在编译swoole时增加enable-opensslwith-openssl-dir
  • 必须在定义Client时增加SWOOLE_SSL

低于1.9.5版本在设置ssl_key_file后会自动启用SSL

$client = new Swoole\Client(SWOOLE_TCP | SWOOLE_ASYNC | SWOOLE_SSL);